package com.business.system.service.impl;

import java.util.List;

import com.business.system.domain.Narration;
import com.business.system.mapper.NarrationMapper;
import com.business.system.service.INarrationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 旁白Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-06-14
 */
@Service
public class NarrationServiceImpl implements INarrationService
{
    @Autowired
    private NarrationMapper narrationMapper;

    /**
     * 查询旁白
     * 
     * @param id 旁白主键
     * @return 旁白
     */
    @Override
    public Narration selectNarrationById(Long id)
    {
        return narrationMapper.selectNarrationById(id);
    }

    /**
     * 查询旁白列表
     * 
     * @param narration 旁白
     * @return 旁白
     */
    @Override
    public List<Narration> selectNarrationList(Narration narration)
    {
        return narrationMapper.selectNarrationList(narration);
    }

    /**
     * 新增旁白
     * 
     * @param narration 旁白
     * @return 结果
     */
    @Override
    public int insertNarration(Narration narration)
    {
        return narrationMapper.insertNarration(narration);
    }

    /**
     * 修改旁白
     * 
     * @param narration 旁白
     * @return 结果
     */
    @Override
    public int updateNarration(Narration narration)
    {
        return narrationMapper.updateNarration(narration);
    }

    /**
     * 批量删除旁白
     * 
     * @param ids 需要删除的旁白主键
     * @return 结果
     */
    @Override
    public int deleteNarrationByIds(Long[] ids)
    {
        return narrationMapper.deleteNarrationByIds(ids);
    }

    /**
     * 删除旁白信息
     * 
     * @param id 旁白主键
     * @return 结果
     */
    @Override
    public int deleteNarrationById(Long id)
    {
        return narrationMapper.deleteNarrationById(id);
    }
}
